/* styles.css */

.window {
    width: 300px;
    background-color: #1f1f2b;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    z-index: 9999;
    transition: height 0.3s ease;
    overflow: hidden; /* 隐藏收缩区域超出的内容 */
    border-radius: 10px 10px 10px 10px;
}

.window-header {
    background-color: #83d8ae;
    color: #1f1f2b;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    font-weight: bold;

}

.window-content {
    padding: 15px;
    font-size: 14px;
    height: auto;
    transition: height 0.3s ease;
}

/* 默认高度 */
.window.open .window-content {
    height: auto;
}

/* 收缩时的高度 */
.window.collapsed .window-content {
    height: 0;
    padding: 0 15px;
    overflow: hidden; /* 隐藏收缩内容 */
}

button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
}

button:hover {
    opacity: 0.7;
}
button:focus {
    outline: none; /* 去掉点击时的焦点边框 */
}
